project (krws)
cmake_minimum_required (VERSION 2.6)

#cmake lib, plug-in같은놈들 모아놓은 위치
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
include(MacroEnsureOutOfSourceBuild)
macro_ensure_out_of_source_build()   #plug-in 지금은 1개. 
###############3




set(INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)  #실행파일 저장공간
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib) 
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib)

set(BUILD_SHARED_LIBS true) #true-> .so, false -> .a
#set(CMAKE_VERBOSE_MAKEFILE true) 

# for Linux gcc
if (CMAKE_COMPILER_IS_GNUCC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffloat-store -Wall -W -Wno-unused-parameter -Wpointer-arith")
endif (CMAKE_COMPILER_IS_GNUCC)

add_subdirectory(src)

